- Title
- Optimizing the utilization of Large Language Models via schedule optimization: an exploratory study
- Creator
- Liu, Yueyue; Zhang, Hongyu; Li, Zhiqiang; Miao, Yuantian
- Relation
- ESEM '24: ACM/IEEE International Symposium on Empirical Software Engineering and Measurement. Proceedings of the 18th ACM/IEEE International Symposium on Empirical Software Engineering and Measurement (Spain 24-25 October, 2024) p. 84-95
- Relation
- ARC.DP200102940 https://purl.org/au-research/grants/arc/DP200102940 | ARC|DP220103044
- Publisher Link
- http://dx.doi.org/10.1145/3674805.3686671
- Publisher
- Association for Computing Machinery
- Resource Type
- conference paper
- Date
- 2024
- Description
- Background: Large Language Models (LLMs) have gained significant attention in machine-learning-as-a-service (MLaaS) offerings. In-context learning (ICL) is a technique that guides LLMs towards accurate query processing by providing additional information. However, longer prompts lead to higher costs of LLM service, creating a performance-cost trade-off. Aims: We aim to investigate the potential of combining schedule optimization with ICL to optimize LLM utilization. Method: We conduct an exploratory study. First, we consider the performance-cost trade-off in LLM utilization as a multi-objective optimization problem, aiming to select the most suitable prompt template for each LLM job to maximize accuracy (the percentage of correctly processed jobs) and minimize invocation cost. Next, we investigate three methods for prompt performance prediction to address the challenge of evaluating the accuracy objective in the fitness function, as the result can only be determined after submitting the job to the LLM. Finally, we apply widely used search-based techniques and evaluate their effectiveness. Results: The results indicate that the machine learning-based technique is an effective approach for prompt performance prediction and fitness function calculation. Schedule optimization can achieve higher accuracy or lower cost by selecting a suitable prompt template for each job, compared to simply submitting all jobs using a single prompt template, e.g., saving costs from 21.33% to 86.92% in our experiments on LLM-based log parsing. However, the performance of the evaluated search-based techniques varies across different instances and metrics, with no single technique consistently outperforming the others. Conclusions: This study demonstrates the potential of combining schedule optimization with ICL to improve the utilization of LLMs. However, there is still ample room for improving the searched-based techniques and prompt performance prediction techniques for more cost-effective LLM utilization.
- Subject
- Large Language Models; schedule optimization; multi-objective optimization; search-based techniques
- Identifier
- http://hdl.handle.net/1959.13/1520475
- Identifier
- uon:57475
- Identifier
- ISBN:9798400710476
- Rights
- 2024 Copyright held by the owner/author(s). Publication rights licensed to ACM.
- Language
- eng
- Full Text
- Reviewed
- Hits: 5
- Visitors: 4
- Downloads: 0
Thumbnail | File | Description | Size | Format | |||
---|---|---|---|---|---|---|---|
View Details Download | ATTACHMENT01 | Publisher version (open access) | 2 MB | Adobe Acrobat PDF | View Details Download |